import request from '@/utils/request'

export function upload(file) {
  return request({
    url: '/upload',
    method: 'post',
    data: file
  })
}

export function download(path, name) {
  return request({
    url: `/download`,
    method: 'get',
    params: { path, name }
  })
}
